import {App} from 'vue'
import {createI18n} from 'vue-i18n'

import messages from './locales'

const i18n = createI18n({
  legacy: false,
  locale: 'zh_CN',
  messages,
  globalInjection: true
})

export default {
  install: (app: App): void => {
    app.use(i18n)
  }
}
